// import {nanoid} from 'nanoid';
import request, { MockResult } from "../request";
const baseUrl = "/spd-eatonos-service";

export const home = {
  // 获取菜单
  getVisitorNumber(params) {
    return request({
      url: baseUrl + "/static/getVisitorNumber",
      method: "get",
      params,
      mock: {
        useMock: true,
        data: MockResult.success({
          newUser: 102400,
          noReadMsg: 81212,
          cost: 9280,
          buyNumber: 13600,
        }),
      },
    });
  },
};

export default home;
